package com.zyw.jta;

import com.zyw.apple.Apple;
import com.zyw.apple.AppleService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 */
public class App {

    public static void main(String[] args) {

        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring-context.xml");

        AppleService service = applicationContext.getBean(AppleService.class);

        Apple apple = new Apple();
        apple.setNumber(1);
        apple.setWeight(10);
        service.biz1(apple);

    }
}
